package zhu.yu.api;
import java.util.Random;

public class DemoRandom {
    public static void main(String[] args) {
        Random random = new Random();
        int r = random.nextInt();   // 所有int类型的整数随机
        System.out.println(r);
        System.out.println(random.nextInt(3));  // 0-2随机

    }
}
